#!/bin/sh -e

case "$1" in
  start)
    paster serve --daemon --pid-file=/var/run/papyrus.pid --log-file=/var/log/papyrus.log /MyProject/development.ini start
    ;;
  stop)
    paster serve --daemon --pid-file=/var/run/papyrus.pid --log-file=/var/log/papyrus.log  /MyProject/development.ini stop
    ;;
  restart)
    paster serve  --daemon --pid-file=/var/run/papyrus.pid --log-file=/var/log/papyrus.log /MyProject/development.ini restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|restart}"
    exit 1
esac
